<?php
// ------ SITE_ROOT
define('DS', DIRECTORY_SEPARATOR);
$p = explode(DS,dirname(__FILE__));
array_pop($p);// 1 ниво нагоре
define('SITE_ROOT', implode(DS, $p));
define('LIB_DIR', SITE_ROOT.DS.'lib');
//--------

// encoding и други
mb_internal_encoding("UTF-8");
error_reporting(E_ALL ^ E_NOTICE);
//



require(LIB_DIR.DS.'setSmarty.php');
$smarty = new lSmarty();
include(LIB_DIR.DS.'db.php');
include(LIB_DIR.DS.'functions.php');
include(LIB_DIR.DS.'site_ini.php');
include(LIB_DIR.DS.'settings.php');

$gCn=Con();


?>